package menu

import (
	"gorm.io/gorm"
	"xs.jsjb/internal/app/menu/controller"
	"xs.jsjb/internal/app/menu/entity"
	"xs.jsjb/internal/app/menu/repository"
	"xs.jsjb/internal/app/menu/service"
)

var (
	Entity = entity.Menu{}
)

func Build(db *gorm.DB) *controller.MenuController {
	repo := repository.NewMenuRepo(db)
	srv := service.NewMenuService(repo)
	return controller.NewMenuController(srv)
}
